# start up the game

from google.appengine.ext import webapp
from google.appengine.ext.webapp.util import run_wsgi_app
from core.support import build_route, default_route

# define our routes
game_routes = [
               build_route('restart','RestartHandler'),
               build_route('startvilla','StartVillaHandler'),
               build_route('sea2lost','Sea2LostHandler'),
               build_route('basement','BasementHandler'),
               build_route('closet','ClosetHandler'),
               build_route('victory_room','VictoryRoomHandler'),
               build_route('sea1','Sea1Handler'),
               build_route('sea2lost','Sea2LostHandler'),
               build_route('sea3bag','Sea3BagHandler'),
               build_route('sea4sharkdeath','Sea4SharkDeathHandler'),
               build_route('sea5starvation','Sea5StarvationHandler'),
               build_route('sea6fishing','Sea6FishingHandler'),
               build_route('sea6afishing','Sea6aFishingHandler'),
               build_route('sea7caughtfish','Sea7CaughtFishHandler'),
               build_route('sea8hearhello','Sea8HearHelloHandler'),
               build_route('sea9rescueattempt','Sea9RescueAttemptHandler'),
               build_route('sea10boatfire','Sea10BoatFireHandler'),
               build_route('sea11finaldeath','Sea11FinalDeathHandler'),
               build_route('winningroom','WinningRoomHandler'),
               build_route('swimtoswimmerdeath','SwimtoSwimmerDeathHandler'),
               build_route('helosignalfaildeath','HeloSignalFailDeathHandler'),
               build_route('swimmerarrives','SwimmerArrivesHandler'),
               build_route('fishwithhandsdeath','FishWithHandsDeathHandler'),
               default_route('startingpoint', 'StartingPointHandler'),
               ]

application = webapp.WSGIApplication(game_routes, debug=True)


def main():
    run_wsgi_app(application)

if __name__ == "__main__":
    main()
